package com.hunt.service.impl;

import com.hunt.dao.IndexNewsMapper;
import com.hunt.model.entity.IndexNewsDetail;
import com.hunt.model.entity.IndexNewsInfo;
import com.hunt.service.IndexNewsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
@Service
@Transactional
public class IndexNewsServiceImpl implements IndexNewsService {
    @Autowired
    private IndexNewsMapper infoMapper;
    @Override
    public List<IndexNewsInfo> findIndexNewsByPage(Long time, Integer sizeUp) {
        return infoMapper.findIndexNewsByPage(time,sizeUp);
    }

    @Override
    public IndexNewsDetail findIndexNewsDetailBystamp(Long intitle) {
        return infoMapper.findIndexNewsDetailBystamp(intitle);
    }
}
